<?
if ( !defined ( 'L_MOD' ) )
{
	echo "<meta http-equiv='refresh' content='0; url=/index.php?nma=error&fla=403'>";
	exit;
}

if (isset($page) && is_numeric($page) && $page>0)
{
	$query_p=mysql_query("SELECT * FROM ".$wcpref.$nma." WHERE mod_id_p='".$page."'");
	$result=mysql_fetch_array($query_p);
	extract($result);
	
	$query_r=mysql_query("SELECT * FROM ".$wcpref.$nma."_razd WHERE mod_id='".$mod_razd_id."'");
	$result_r=mysql_fetch_array($query_r);
	extract($result_r);
	
	$query_pr=mysql_query("SELECT * FROM ".$wcpref.$nma."_product WHERE mod_id_prod='".$mod_prod_id."'");
	$result_pr=mysql_fetch_array($query_pr);
	extract($result_pr);
	
	print '<h2><a href="index.php?nma='.$nma.'&fla=viewprod&lid='.$mod_id_prod.'">'.$mod_product.'</a>: '.$mod_razdel.': '.$mod_name.'</h2>';
	
	print "<br>";
	
	print $mod_opis;
	print "<br>";
	include("menu.php");
}else
{
	print "error";
}


?>